#!/bin/bash
IPADDR="$1"
echo "ip:${IPADDR}"
sed -i "s/localhost/${IPADDR}/g" /etc/nginx/conf.d/default.conf

nginx -g 'daemon off;'
